from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QHBoxLayout, QPushButton
import sys


class WindowDemo(QWidget):
	def __init__(self):
		super(WindowDemo, self).__init__()
		
		hlayout = QHBoxLayout()
		hlayout.addStretch(0)

		hlayout.addWidget(QPushButton(str(1)))
		hlayout.addWidget(QPushButton(str(2)))
		hlayout.addWidget(QPushButton(str(3)))
		hlayout.addWidget(QPushButton(str(4)))
		hlayout.addWidget(QPushButton(str(5)))

		self.setLayout(hlayout)

if __name__ == '__main__':
	app = QApplication(sys.argv)
	win = WindowDemo()
	win.show()
	sys.exit(app.exec_())